<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>runoob</title>
</head>
<body>
<form  action="/uploadFile/" method="post" enctype="multipart/form-data" >
    <input type="file" name="myfile" ><br>
    {% csrf_token %}
<input type="submit" value="提交"/><br>
</form>
    {% if flag %}
        {{ flag }}<br>
        {% ifequal flag  '上传成功！' %}
            点击按钮下载结果文件：<br>
            <form action="/downloadFile/" method="post">{% csrf_token %}
                <input type="text" name="filename"><br>
                <input type="submit" value="下载"/>
            </form>
        {% endifequal %}
    {% endif %}<br>
</body>
</html>